home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Visio 2000 Settings 1.xpl < prev    next >
Text File  |  2000-11-11  |  1KB  |  68 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Program Options\Microsoft Office\MS Office 2000\Visio 2000"
  5. "NAME"="Visio 2000 Misc Settings"
  6. "VERSION"="1.10"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Macro Virus Protection."
  9. "TEXT 2"="Bitmap Caching"
  10. "DESCRIPTION 1"="To enable Macro Virus Protection, check Box 1. Default is disabled [unchecked box]."
  11. "DESCRIPTION 2"="To disable Bitmap Caching, check Box 2. Default is enabled [unchecked box]."
  12. "AUTHOR"="Ojatex@aol.com"
  13. "CONTACTURL"="http://members.aol.com/ojatex/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For X-Setup program information, go to http://www.xteq.com."
  16. "COMMENT 2"="Thanks to CptSiskoX for the tip and settings."
  17.  
  18.  
  19. sP="HKCU\Software\Visio\Visio 2000\application\"
  20. sV1="MacroVirusProtection"
  21. sV2="TurnOffBitmapCache"
  22.  
  23. Sub Plugin_Initialize 
  24.  if RegPathExists(sP) then
  25.     i=RegReadValue(sP & sV1)
  26.     if i=1 then SetUiElement 1,true
  27.  
  28.    i=RegReadValue(sP & sV2)
  29.     if i=1 then SetUiElement 2,true
  30.  
  31.  else
  32.     Call Disable()
  33.  end if
  34. End Sub
  35.  
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40.  
  41.  
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  b=GetUIElement(1)
  44.  if b=true then
  45.     i="1"
  46.  else
  47.     i="0"
  48.  end if
  49.  Call RegWriteValue(sP & sV1,i,1)
  50.  
  51. b=GetUIElement(2)
  52.  if b=true then
  53.     i="1"
  54.  else
  55.     i="0"
  56.  end if
  57.  Call RegWriteValue(sP & sV2,i,1)
  58.  
  59.  
  60. End Sub
  61.  
  62.  
  63. Sub Plugin_Terminate 
  64. End Sub
  65.  
  66.  
  67.  
  68.